/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="GLOSA")
public class GlosaProteu implements Serializable{

    @Id
    @Column(name="GLO_ST_CODIGO")
    private String gloStCodigo;
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Column(name="CON_ST_FANTASIA")
    private String conStFantasia;
    @Column(name="GLO_ST_NUMERO_GUIA")
    private String gloStNumeroGuia;
    @Column(name="PAC_ST_NOME")
    private String pacStNome;
    @Column(name="PAC_ST_CODIGO")
    private String pacStCodigo;
    @Column(name="PAC_ST_RG")
    private String pacStRG;
    @Column(name="GLO_ST_MOTIVO")
    private String gloStMotivo;
    @Column(name="GLO_DT_COMPETENCIA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date gloDtCompetencia;
    @Column(name="GLO_ST_RECURSO")
    private String gloStRecurso;
    @Column(name="GLO_ST_COD_MOTIVO")
    private String gloStCodMotivo;
    @Column(name="GLO_ST_VERIFICA_RECURSO")
    private String gloStVerificaRecusro;


    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public String getConStFantasia() {
        return conStFantasia;
    }

    public void setConStFantasia(String conStFantasia) {
        this.conStFantasia = conStFantasia;
    }

    public String getGloStNumeroGuia() {
        return gloStNumeroGuia;
    }

    public void setGloStNumeroGuia(String gloStNumeroGuia) {
        this.gloStNumeroGuia = gloStNumeroGuia;
    }

    public Date getGloDtCompetencia() {
        return gloDtCompetencia;
    }

    public void setGloDtCompetencia(Date gloDtCompetencia) {
        this.gloDtCompetencia = gloDtCompetencia;
    }

    public String getGloStCodMotivo() {
        return gloStCodMotivo;
    }

    public void setGloStCodMotivo(String gloStCodMotivo) {
        this.gloStCodMotivo = gloStCodMotivo;
    }

    public String getGloStCodigo() {
        return gloStCodigo;
    }

    public void setGloStCodigo(String gloStCodigo) {
        this.gloStCodigo = gloStCodigo;
    }

    public String getGloStMotivo() {
        return gloStMotivo;
    }

    public void setGloStMotivo(String gloStMotivo) {
        this.gloStMotivo = gloStMotivo;
    }

    public String getGloStRecurso() {
        return gloStRecurso;
    }

    public void setGloStRecurso(String gloStRecurso) {
        this.gloStRecurso = gloStRecurso;
    }

    public String getGloStVerificaRecusro() {
        return gloStVerificaRecusro;
    }

    public void setGloStVerificaRecusro(String gloStVerificaRecusro) {
        this.gloStVerificaRecusro = gloStVerificaRecusro;
    }

    public String getPacStCodigo() {
        return pacStCodigo;
    }

    public void setPacStCodigo(String pacStCodigo) {
        this.pacStCodigo = pacStCodigo;
    }

    public String getPacStNome() {
        return pacStNome;
    }

    public void setPacStNome(String pacStNome) {
        this.pacStNome = pacStNome;
    }

    public String getPacStRG() {
        return pacStRG;
    }

    public void setPacStRG(String pacStRG) {
        this.pacStRG = pacStRG;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final GlosaProteu other = (GlosaProteu) obj;
        if ((this.gloStCodigo == null) ? (other.gloStCodigo != null) : !this.gloStCodigo.equals(other.gloStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.gloStCodigo != null ? this.gloStCodigo.hashCode() : 0);
        return hash;
    }



}
